function operatorAttr(type, id) {
	document.getElementById("operator").style.display = "block";
	if (type == "modify") {
		document.getElementById("attr_id").value = document
				.getElementById("attr_id_" + id).value;
		alert(document.getElementById("attr_id").value);
		document.getElementById("attr_name").value = document
				.getElementById("attr_name_" + id).innerHTML;
		document.getElementById("attr_cnName").value = document
				.getElementById("attr_cnName_" + id).innerHTML;
		document.getElementById("attr_description").innerHTML = document
				.getElementById("attr_description_" + id).innerHTML;
	}
}
function deleteAttr(group_id, id) {
	if (confirm("确定要删除当前组！")) {
		window.location.href = "SimplateAction?group_id=" + group_id
				+ "attr_id=" + id
				+ "$action=ProductAttrAction&method=deleteProductAttr";
	}
}
